﻿$(function () {
    $("#registration").validate({
        rules: {
            Email: {
                email: true,
                required: true,
                remote: "/Account/CheckEmail"
            },
            UserName: {
                required: true,
                rangelength: [3, 20],
                remote: "/Account/CheckName"
            },
            Password: {
                rangelength: [6, 15]
            }



        }
    })

})